Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
This post has been closed. You can still view previous posts, but you can't post any new replies.

group ?{|} options in a single macro together

1403268797
The Aaron
Roll20 Production Team
API Scripter
It would be great if running a command like this: !StatusAdd ?{Status|Poisoned} ?{Duration|-1} ?{Description|Save ends} Could handle the form input phase all together like this:
Alternatively, perhaps it would be easier if we had a new syntax for multiple input values in one window. Like, !StatusAdd ?{Status|Poisoned, Duration|-1, Description|Save ends}
1403277835
The Aaron
Roll20 Production Team
API Scripter
Possibly, though that would make parsing a bit more complicated, particularly if you wanted to have , in your default. ?{Description|Save ends, DC 10} Also, that wouldn't let you take advantage of the multi-input form in existing api commands or scripts where the arguments are not adjacent: !power --attack?{Targets|1}|[[1d20+?{Misc Bonus|0}]] Contrived example, but you get the point.
1403278169
Paul S.
Sheet Author
API Scripter
Aaron - question - what is the application in game? I'm curious because this seems a handy tool for diseases, poisons, etc... How is this status added? Where? I'm thinking I recall seeing scripts for auto-tracking status markers, but not one that added a description of the status being tracked.
1403279211
The Aaron
Roll20 Production Team
API Scripter
I had this idea while helping Charles with the "Roll20 Status Tracker" script. It doesn't work as written, so check out the this thread for discussion of what I had to do to fix it: <a href="https://app.roll20.net/forum/post/942834/cant-get-" rel="nofollow">https://app.roll20.net/forum/post/942834/cant-get-</a>...